//
//  StarViewLarge.m
//  cafe
//
//  Created by yinqy on 15/4/24.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "StarViewLarge.h"

@implementation StarViewLarge
+(instancetype)startView{
    return [[[NSBundle mainBundle] loadNibNamed:@"StarViewLarge" owner:nil options:nil] lastObject];
}


-(void)setLevel:(NSInteger)level{
    [self.btnArray makeObjectsPerformSelector:@selector(setHidden:) withObject:[NSNumber numberWithBool:YES]];
    for (int i=0; i<level; i++) {
        UIButton *btn = self.btnArray[i];
        [btn setHidden:NO];
    }
}

@end
